/**
 *
 * Created by cheng.xi on 15/6/8.
 * 弹窗
 */
var BaseWindow = function(title,content,width,height,draggable,closeTime){
    this.title = title;
    this.content = content;
    this.width = width;
    this.height = height;
    this.draggable = draggable;
    this.closeTime = closeTime;
};

BaseWindow.prototype = {
    showWidow:function(){
        $('#myModal').modal('show');
        $('#myModal').find(".modal-title").empty().append(this.title);
        $('#myModal').find(".modal-body").empty().append(this.content);
        $('#myModal').find(".modal-dialog").css({"width":this.width});
        $('#myModal').find(".modal-body").css({"height":this.height});
    }
};